&lt;iframe src="<%=Embed.checkUrlProtocol(imscpfile.lourl,request.protocol)%>" width="<%=imscpfile.width%>" height="<%=imscpfile.height%>" objecttype="imscppackage" webkitAllowFullScreen="true" allowfullscreen="true" mozallowfullscreen="true"&gt;&lt;/iframe&gt;